﻿<!-- zhouxiang www.zhou-xiang.com -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>uploadPreview演示</title>
    <script src="/static/js/uploadPreview.js" type="text/javascript"></script>
    <script src="/static/jquery-easyui-1.3.3/jquery.min.js" type="text/javascript" language="javascript"></script>
    <script  type="text/javascript" language="javascript">
        window.onload = function () {
            new uploadPreview({ UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow" });
        }
        function add()
        {
            var html = $("#div_src").html();

            var add_html = "<div id=\"div_js\">";
            add_html += html;
            add_html += "</div>";

            $("#div_src").append(add_html);
        }

    </script>
</head>
<body>
<form action="/upload/do_upload" method="post" enctype="multipart/form-data">
    <div id="div_src">
    <select name='select[]' class='s8' id="ddl1">
        <option value=''>— 请选择 —</option>
        <optgroup label='情感' name="emotion"></optgroup>
        <?php
            foreach($arr as $key=>$vo){
              echo "<option value=$vo[id]>$vo[name]</option>";
            }
        ?>
        <optgroup label='专题' value='2'name="theme"></optgroup>
        <?php
        foreach($arr1 as $key=>$vo){
            echo "<option value=$vo[id]>$vo[name]</option>";
        }
        ?>
    </select>
    <input id="is_best" type="checkbox" name="checkbox[]" value="1"> 精选
    <br/>
    名称：<input type="text" name="fname[]" />
    <div id="imgdiv"><img id="imgShow" width="300" height="300" src="/static/images/7.jpg"" /></div>
    <input type="file" id="up_img" name="userfile[]" size="20" multiple="multiple" />

    </div>
    <input type="button" value="继续添加" onclick="add();"/>
    <input type="submit" value="保存" />

    <!--button type="button">取消</button-->
</form>
</body>
</html>
